package com.tiyende.kash.loop.weight.font;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.lib.common.shapeview.view.ShapeButton;
import com.tiyende.kash.loop.TiyendeApp;

/**
 * TiyendeCredit
 *
 * @Author wwdeng
 * @CreateTime: 2024/12/26 21:26
 * @Annotation：
 */
public class RobotoMediumButton extends ShapeButton {
    public RobotoMediumButton(Context context) {
        super(context);
    }
    public RobotoMediumButton(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public RobotoMediumButton(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }
    @Override
    public void setTypeface(@Nullable Typeface tf) {
        super.setTypeface(tf);
    }
    @Override
    public void setTypeface(@Nullable Typeface tf, int style) {
//        super.setTypeface(Typeface.createFromAsset(getContext().getAssets(),"fonts/Roboto-Medium.ttf"));
        super.setTypeface(TiyendeApp.app.getMediumTypeface());
    }
}
